package cn.szabadsag.user.domain;

import cn.szabadsag.base.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 用户
 *
 * @author yangcong
 * @date 2022年03月10日 19:17
 * @since v1.0
 */
@Data
public class User extends BaseDomain {

    private String username;

    private String email;

    private String phone;

    private String salt;

    private String password;

    private Integer state;

    private Integer age;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createtime = new Date();

    private String headImg;

    private Long logininfo_id;


}
